#include "stdafx.h"
#include "../Function.h"
#include "../Context.h"

namespace Gs
{
	// Initialises a new instance of Function class.
	Function::Function(NativeFunction f)
		: _native(f)
	{
	}

	// Destroys the instance.
	Function::~Function()
	{
	}

	// Gets the native function pointer.
	NativeFunction Function::GetNativeFunction()
	{
		return _native;
	}

	// Determines if the function is a native function.
	bool Function::IsNativeFunction()
	{
		return _native != 0;
	}
}